<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
include_once '../config.php';

$username = $_POST['username'];
$password = $_POST['password'];

$sql = "select * from admin where username = '$username' and password ='$password' ";

$result = $conn ->query($sql);

if ($result -> num_rows > 0){
    header("location:index.html");
}else{
    header("location:login.html");
}
?>
       

